From decd2f10365efce80861cd236b3917a78ad3d160 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 30 Aug 2002 00:47:34 +0000 Subject: [PATCH] Misc code cleanups. --- gpsbabel/mkshort.c | 40 +++++----------------------------------- 1 file changed, 5 insertions(+), 35 deletions(-) diff --git a/gpsbabel/mkshort.c b/gpsbabel/mkshort.c index 09cd056be..5bc6aa8f0 100644 --- a/gpsbabel/mkshort.c +++ b/gpsbabel/mkshort.c @@ -127,44 +127,15 @@ mkshort(char *istring) abort(); } + /* + * Delete vowels starting from the end. If it fits, quit stomping + * them. If we run out of string, give up. + */ replaced = 1; while (replaced && strlen(ostring) > TGT_LEN) { - ostring = delete_last_vowel(2, ostring,&replaced); + ostring = delete_last_vowel(2, ostring, &replaced); } - -#if 0 - tstring = strdup(ostring); - if (!tstring) { - abort(); - } - l = strlen (tstring); - cp = ostring+2; - for (i=2;i